package game.ui.controls
{
	import flash.display.*;
	import flash.text.*;
	import game.ui.core.*;
	
	public class RxCooldownDisplay extends RxUIElement
	{
		protected var m_angle:Number;
		protected var m_leftShape:Shape;
		protected var m_rightShape:Shape;
		protected var m_leftMask:Shape;
		protected var m_rightMask:Shape;
		protected var m_cooldownLabel:RxTextLabel;
		
		public function RxCooldownDisplay()
		{
			this.m_angle = 0;
			m_width = 50;
			m_height = 50;
			this.m_leftMask = new Shape();
			addChild(this.m_leftMask);
			this.m_leftShape = new Shape();
			this.m_leftShape.mask = this.m_leftMask;
			addChild(this.m_leftShape);
			this.m_rightMask = new Shape();
			addChild(this.m_rightMask);
			this.m_rightShape = new Shape();
			this.m_rightShape.mask = this.m_rightMask;
			addChild(this.m_rightShape);
			this.m_cooldownLabel = RxTextLabel.CreateWithStyle(RxFontStyleConstants.BODY_EXTRA_LARGE, 16777215, TextFormatAlign.CENTER);
			this.m_cooldownLabel.SetStroke(1, 0);
			addChild(this.m_cooldownLabel);
			InvalidateSize();
		}
	}
}